<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="Main,com.dita.Main,BORDER_COLOR,BTN_ALPHA,OUTPUT_FILE,SO_NAME,allClasses,currTf,helpTfDic,tfArr,tfBtnDic,tfNameArr,generate,getASFilesInFolder,getCache,getClassNames,getOutputFileName,hApplicationExit,hAsdocPathSelect,hDirectorySelect,hFocusIn,hFocusOut,hMouseClick,hMouseOut,hMouseOver,hSaveFileSelect,initBtn,isPc,log" name="keywords">
<title>com.dita.Main</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Main - DiTA documentation';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">DiTA - Doc in The AIR</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?com/dita/Main.html&amp;com/dita/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Main</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Main"); titleBar_setSubNav(true,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.dita</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Main</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Main <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../images/inherit-arrow.gif"> flash.display.MovieClip</td>
</tr>
</table>
<p></p>
  Main Class of DiTA
  All variables and methods are uing "protected" so they can show up in doc. Not my normal practice. 
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a><a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#allClasses">allClasses</a> : Array<div class="summaryTableDescription">
   array of strings that holds all classes
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#currTf">currTf</a> : TextField<div class="summaryTableDescription">
   currently selected text field so the file browsing knows where to put selected path/file in
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#helpTfDic">helpTfDic</a> : Dictionary<div class="summaryTableDescription">
   help text dictionary to lookup using corresponding text field
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#tfArr">tfArr</a> : Array<div class="summaryTableDescription">
   array of text fields, for reference convenience
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#tfBtnDic">tfBtnDic</a> : Dictionary<div class="summaryTableDescription">
   text field dictionary to lookup using corresponding button
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#tfNameArr">tfNameArr</a> : Array<div class="summaryTableDescription">
   array of strings that stores all text field names, for reference convenience
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Main()">Main</a>()</div>
<div class="summaryTableDescription">
   constructor, initalise dictionaries and user interface.</div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
</table>
</div>
<a name="methodSummary"></a><a name="protectedMethodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Methods</div>
<table id="summaryTableProtectedMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#generate()">generate</a>():void</div>
<div class="summaryTableDescription">
   generate the command, use all input data and scan for classes, generate a string of command and prompt the user to select a location to save
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getASFilesInFolder()">getASFilesInFolder</a>(dir:File, sourcePath:String):Array</div>
<div class="summaryTableDescription">
   scan a folder to get all actionscript files and get it's class names recursively
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getCache()">getCache</a>():Array</div>
<div class="summaryTableDescription">
   
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getClassNames()">getClassNames</a>(path:String):Array</div>
<div class="summaryTableDescription">
   get the classes within a path/directory, recursively search for .as files and use the file name as class name
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getOutputFileName()">getOutputFileName</a>():String</div>
<div class="summaryTableDescription">
   helper function to get the save file name for different os, if pc then save as .bat if not save as .sh
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hApplicationExit()">hApplicationExit</a>(evt:Event):void</div>
<div class="summaryTableDescription">
   event handler for application exit, save all inputs into shared object
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hAsdocPathSelect()">hAsdocPathSelect</a>(evt:Event):void</div>
<div class="summaryTableDescription">
   file select handler, insert selected path of asdoc executable file into corresponding text field
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hDirectorySelect()">hDirectorySelect</a>(evt:Event):void</div>
<div class="summaryTableDescription">
   folder select handler, insert selected folder path into corresponding text field
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hFocusIn()">hFocusIn</a>(evt:FocusEvent):void</div>
<div class="summaryTableDescription">
   event handler for text field focus in, display help text
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hFocusOut()">hFocusOut</a>(evt:FocusEvent):void</div>
<div class="summaryTableDescription">
   event handler for text field focus in, set help text to nothing
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hMouseClick()">hMouseClick</a>(evt:MouseEvent):void</div>
<div class="summaryTableDescription">
   mouse click event handler for button, open file browser to allow user's select folder/file
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hMouseOut()">hMouseOut</a>(evt:MouseEvent):void</div>
<div class="summaryTableDescription">
   mouse out event handler for button, set alpha back to 1
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hMouseOver()">hMouseOver</a>(evt:MouseEvent):void</div>
<div class="summaryTableDescription">
   mouse over event handler for button, set alpha to BTN_ALPHA
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#hSaveFileSelect()">hSaveFileSelect</a>(evt:Event):void</div>
<div class="summaryTableDescription">
   file select handler, insert selected path of asdoc executable file into corresponding text field
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#initBtn()">initBtn</a>(btn:MovieClip):void</div>
<div class="summaryTableDescription">
   helper function to initialise a button, add event linstners for mouse over/out/click
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isPc()">isPc</a>():Boolean</div>
<div class="summaryTableDescription">
   Helper function to detect whether the system environment is PC or Unix based(mac or linux)
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#log()">log</a>(obj:Object):void</div>
<div class="summaryTableDescription">
   log/trace some info into the small text field at the bottom of the application
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
</table>
</div>
<a name="constantSummary"></a><a name="protectedConstantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Constants</div>
<table id="summaryTableProtectedConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#BORDER_COLOR">BORDER_COLOR</a> : int = 0x999999<div class="summaryTableDescription">
   border color for text fields
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#BTN_ALPHA">BTN_ALPHA</a> : Number = 0.2<div class="summaryTableDescription">
   button rollover effect, alpha set to a value (0.2 in this case)
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#OUTPUT_FILE">OUTPUT_FILE</a> : String = "asdoc"<div class="summaryTableDescription">
   out put file name
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#SO_NAME">SO_NAME</a> : String = "dita"<div class="summaryTableDescription">
   shared object name
   </div>
</td><td class="summaryTableOwnerCol">Main</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="allClasses"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">allClasses</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>protected var allClasses:Array</code><p>
   array of strings that holds all classes
   </p></div>
<a name="currTf"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">currTf</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var currTf:TextField</code><p>
   currently selected text field so the file browsing knows where to put selected path/file in
   </p></div>
<a name="helpTfDic"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">helpTfDic</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var helpTfDic:Dictionary</code><p>
   help text dictionary to lookup using corresponding text field
   </p></div>
<a name="tfArr"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">tfArr</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var tfArr:Array</code><p>
   array of text fields, for reference convenience
   </p></div>
<a name="tfBtnDic"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">tfBtnDic</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var tfBtnDic:Dictionary</code><p>
   text field dictionary to lookup using corresponding button
   </p></div>
<a name="tfNameArr"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">tfNameArr</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var tfNameArr:Array</code><p>
   array of strings that stores all text field names, for reference convenience
   </p></div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="Main()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Main</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function Main()</code><p>
   constructor, initalise dictionaries and user interface. read shared object data and populate the text fields with previously saved data
   </p></div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="generate()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">generate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>protected function generate():void</code><p>
   generate the command, use all input data and scan for classes, generate a string of command and prompt the user to select a location to save
   </p></div>
<a name="getASFilesInFolder()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getASFilesInFolder</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function getASFilesInFolder(dir:File, sourcePath:String):Array</code><p>
   scan a folder to get all actionscript files and get it's class names recursively
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">dir</span>:File</code> &mdash;    folder/directory to search in
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">sourcePath</span>:String</code> &mdash;  path of the source folder, it's used to determin the package name
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Array</code> &mdash;     an array of class names
   </td>
</tr>
</table>
</div>
<a name="getCache()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getCache</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function getCache():Array</code><p>
   
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Array</code> &mdash; Array of saved value in shared object, if there's no value saved, return an empty array
   </td>
</tr>
</table>
</div>
<a name="getClassNames()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getClassNames</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function getClassNames(path:String):Array</code><p>
   get the classes within a path/directory, recursively search for .as files and use the file name as class name
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">path</span>:String</code> &mdash; directory path
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Array</code> &mdash;   an array of class names (Strings)
   </td>
</tr>
</table>
</div>
<a name="getOutputFileName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getOutputFileName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function getOutputFileName():String</code><p>
   helper function to get the save file name for different os, if pc then save as .bat if not save as .sh
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code> &mdash;   save file name
   </td>
</tr>
</table>
</div>
<a name="hApplicationExit()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hApplicationExit</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hApplicationExit(evt:Event):void</code><p>
   event handler for application exit, save all inputs into shared object
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:Event</code></td>
</tr>
</table>
</div>
<a name="hAsdocPathSelect()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hAsdocPathSelect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hAsdocPathSelect(evt:Event):void</code><p>
   file select handler, insert selected path of asdoc executable file into corresponding text field
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:Event</code> &mdash;  Event
   </td>
</tr>
</table>
</div>
<a name="hDirectorySelect()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hDirectorySelect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hDirectorySelect(evt:Event):void</code><p>
   folder select handler, insert selected folder path into corresponding text field
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:Event</code> &mdash;  Event
   </td>
</tr>
</table>
</div>
<a name="hFocusIn()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hFocusIn</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hFocusIn(evt:FocusEvent):void</code><p>
   event handler for text field focus in, display help text
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:FocusEvent</code> &mdash;  focus event
   </td>
</tr>
</table>
</div>
<a name="hFocusOut()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hFocusOut</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hFocusOut(evt:FocusEvent):void</code><p>
   event handler for text field focus in, set help text to nothing
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:FocusEvent</code> &mdash;  focus event
   </td>
</tr>
</table>
</div>
<a name="hMouseClick()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hMouseClick</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hMouseClick(evt:MouseEvent):void</code><p>
   mouse click event handler for button, open file browser to allow user's select folder/file
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:MouseEvent</code> &mdash;  mouse click event
   </td>
</tr>
</table>
</div>
<a name="hMouseOut()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hMouseOut</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hMouseOut(evt:MouseEvent):void</code><p>
   mouse out event handler for button, set alpha back to 1
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:MouseEvent</code> &mdash;  mouse out event
   </td>
</tr>
</table>
</div>
<a name="hMouseOver()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hMouseOver</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hMouseOver(evt:MouseEvent):void</code><p>
   mouse over event handler for button, set alpha to BTN_ALPHA
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:MouseEvent</code> &mdash;  mouse over event
   </td>
</tr>
</table>
</div>
<a name="hSaveFileSelect()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hSaveFileSelect</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function hSaveFileSelect(evt:Event):void</code><p>
   file select handler, insert selected path of asdoc executable file into corresponding text field
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">evt</span>:Event</code> &mdash;  Event
   </td>
</tr>
</table>
</div>
<a name="initBtn()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">initBtn</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function initBtn(btn:MovieClip):void</code><p>
   helper function to initialise a button, add event linstners for mouse over/out/click
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">btn</span>:MovieClip</code> &mdash;  movieclip of a button
   </td>
</tr>
</table>
</div>
<a name="isPc()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isPc</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function isPc():Boolean</code><p>
   Helper function to detect whether the system environment is PC or Unix based(mac or linux)
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
</div>
<a name="log()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">log</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function log(obj:Object):void</code><p>
   log/trace some info into the small text field at the bottom of the application
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:Object</code></td>
</tr>
</table>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="BORDER_COLOR"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">BORDER_COLOR</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>protected const BORDER_COLOR:int = 0x999999</code><p>
   border color for text fields
   </p></div>
<a name="BTN_ALPHA"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">BTN_ALPHA</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected const BTN_ALPHA:Number = 0.2</code><p>
   button rollover effect, alpha set to a value (0.2 in this case)
   </p></div>
<a name="OUTPUT_FILE"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">OUTPUT_FILE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected const OUTPUT_FILE:String = "asdoc"</code><p>
   out put file name
   </p></div>
<a name="SO_NAME"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">SO_NAME</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected const SO_NAME:String = "dita"</code><p>
   shared object name
   </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">http://code.google.com/p/dita/</center>
</div>
</body>
</html>
<!--http://code.google.com/p/dita/-->
